/**
 * @author LinYiSong
 */
$(function(){
	var levelvalue=$("#levelvalue").attr("value");
    resetSelect("level",levelvalue);
});
function resetSelect(name, select) {
		$("select[name=" + name + "] option").each(
				function(i) {
					if ($("select[name=" + name + "] option").eq(i).attr(
							"value") == select) {
						$("select[name=" + name + "] option").eq(i).attr(
								"selected", true);
					} else {
						$("select[name=" + name + "] option").eq(i).attr(
								"selected", false)
					}
				});
	}